package com.campus.service;

import com.campus.common.Result;
import com.campus.entity.EmailVO;
import com.campus.entity.PasswordVO;
import com.campus.entity.User;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import jakarta.servlet.http.HttpSession;

public interface UserService {
    Result register(User user);
    Result login(User user, HttpServletResponse response, HttpServletRequest request, HttpSession session);

    Result sendCode(EmailVO email);

    Result verifyCode(EmailVO email);

    Result resetPassword(EmailVO email);

    Result updatePwdByOldPwd(PasswordVO passwordVO, HttpSession session);
    Result logout(HttpServletRequest request);
    Result getUserInfo(HttpServletRequest request);
    Result getCaptcha();
}

